﻿package baseEngine.core
{
    import flash.geom.*;

    public class Boundings3D extends Object
    {
        public var radius:Number = 0;
        public var min:Vector3D;
        public var max:Vector3D;
        public var length:Vector3D;
        public var center:Vector3D;

        public function Boundings3D()
        {
            this.reset();
            return;
        }// end function

        public function clone() : Boundings3D
        {
            var _loc_1:* = new Boundings3D();
            _loc_1.radius = this.radius;
            _loc_1.min = this.min.clone();
            _loc_1.max = this.max.clone();
            _loc_1.length = this.length.clone();
            _loc_1.center = this.center.clone();
            return _loc_1;
        }// end function

        public function toString() : String
        {
            return "[object Boundings3D]";
        }// end function

        public function reset() : void
        {
            this.radius = 0;
            this.min = new Vector3D();
            this.max = new Vector3D();
            this.center = new Vector3D();
            this.length = new Vector3D();
            return;
        }// end function

    }
}
